package com.m31skytech.dungeonstool.blocks;

import net.minecraft.core.BlockPos;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.SoundType;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.material.Material;

/**空气墙方块
 *
 */
public class AirWallBlock extends Block {
    public AirWallBlock() {
        super(BlockBehaviour.Properties.of(Material.GLASS) // 设置材质为 GLASS
                .strength(-1F, 3600000.0F) // 设置不可破坏
                .sound(SoundType.WOOL) // 设置声音类型为羊毛
                .lightLevel((state) -> 1) // 设置光照等级为 1 (0.5 在 1.19.2 中不可用，使用 1 或 0)
                .noOcclusion()
                .isViewBlocking((state, world, pos) -> false));
    }

    @Override
    public boolean propagatesSkylightDown(BlockState p_49928_, BlockGetter p_49929_, BlockPos p_49930_) {
        return true;
    }
}
